/**********************************************************************************
* CLASS 
*		AnimbationObject
*
* DESCRIPTION
*       Use to mapping animation and command for running
* 		Contend manipulate function set:
*
* REVISION HISTORY
*		Revision 1.0 2008/09/27 Atthaboon S.
*		First Release.
*
**********************************************************************************/
var AnimationObject = Class.create({

	/****************************************************
	* FUNCTION 
	*		initialize
	*
	* ARGUMENTS
	*		animation	:	command that call from user.
	*		command		:   command that generate form animation that calculate event for run.
    *
	* DESCRIPTION
	* 		initialize the Genesis object.
	*
	****************************************************/
  	initialize: function(animation,command)
  	{
		this.animation = animation;
		this.command   = command;
		
		// set id of obj ref
		this.id		   = '';
		this.id 	   = animation.split(".");
		this.id		   = this.id[0]; 
  	},
  	
  	/****************************************************
	* FUNCTION 
	*		getID
	*
	* DESCRIPTION
	* 		Get Id.
	*
	* ARGUMENTS
    *
    * RETURN
	*       Id
	****************************************************/
	getID : function()
	{	
        return this.id;
	},
	
	/****************************************************
	* FUNCTION 
	*		getCommand
	*
	* DESCRIPTION
	* 		Get command.
	*
	* ARGUMENTS
    *
    * RETURN
	*       command
	****************************************************/
	getCommand : function()
	{	
        return this.command;
	},
	
	/****************************************************
	* FUNCTION 
	*		setCommand
	*
	* DESCRIPTION
	* 		set Command
	*
	* ARGUMENTS
	*		Command 	:	Command string
    *
    * RETURN
	*       animation
	****************************************************/
	setCommand : function(command)
	{	
		this.command = command;
	},
	
	/****************************************************
	* FUNCTION 
	*		getAnimation
	*
	* DESCRIPTION
	* 		Get animation
	*
	* ARGUMENTS
    *
    * RETURN
	*       animation
	****************************************************/
	getAnimation : function()
	{	
        return this.animation;
	}

});